package cn.gson.fengboot.model.service;

import cn.gson.fengboot.model.dao.TfyclientFormDao;
import cn.gson.fengboot.model.dao.TfyempoperationDao;
import cn.gson.fengboot.model.mapper.TfyempoperationMapper;
import cn.gson.fengboot.model.pojos.TfyclientForm;
import cn.gson.fengboot.model.pojos.Tfyempoperation;
import cn.gson.fengboot.model.pojos.TfylinkmanForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class TfyempoperationService {
    @Autowired
    TfyempoperationDao tfyempoperationDao;

    @Autowired
    TfyclientFormDao tfyclientFormDao;

    @Autowired
    TfyempoperationMapper tfyempoperationMapper;//操作mapper

    //根据客户id查询 操作记录
    public List<Tfyempoperation> findAllcz(Integer clientId){
        return tfyempoperationMapper.findAllcz(clientId);
    }

    //根据联系人id查询 操作记录
    public List<Tfyempoperation> findAlllxrcz(Integer linkmanId){
        return tfyempoperationMapper.findAlllxrcz(linkmanId);
    }

    //根据线索id查询 操作记录
    public List<Tfyempoperation> findAllxscz(Integer clueId){
        return tfyempoperationMapper.findAllxscz(clueId);
    }
}
